package com.woniuxy.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Permission {
    private Integer id;
    private Integer parentId;
    private String pname; //权限名：菜单项
    private String url; //访问地址
    private String code;//权限代码
    private Integer level; //第几级
    private Integer sort; //排序

    private List<Permission> children;
}
